package com.itetchologyandenglish.home.service.Impl;

import com.itetchologyandenglish.home.enetity.AuthUser;
import com.itetchologyandenglish.home.enetity.Roles;
import com.itetchologyandenglish.home.mapper.AdminMapper;
import com.itetchologyandenglish.home.mapper.RoleMapper;
import com.itetchologyandenglish.home.service.AdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class AdminServiceImpl implements AdminService {
    @Resource
    AdminMapper adminMapper;
    @Resource
    RoleMapper roleMapper;
    @Override
    public List<AuthUser> getList() {
        return adminMapper.getList();
    }

    @Override
    public List<Roles> getRoleList() {
       return   roleMapper.getRoleList();
    }

    @Override
    public Integer checkAdminName(String adminName) {
        return adminMapper.checkAdminName(adminName);
    }
}
